﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using com.tiyma.components;


namespace com.tiyma.web
{
    public partial class Out : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string url = Request["retUrl"];

            if (string.IsNullOrEmpty(url))
            {
                url = "/default.aspx";
            }

            if (url.ToLower().IndexOf("/user/") > -1)
            {
                url = "/default.aspx";
            }

            UserLoginHelper.DeleteUserTicket();

            Response.Redirect(url, true);
        }
    }
}
